When a sales order is confirmed, it is added to the Sales order confirmation journal. If an applicable document flow with direction 'Outbound' and type 'Confirmation' exists, also a record is added to the Outbound message queue. When this record is processed, the 'Sales - Confirmation to XML' message is run. As a result, this message gets the data from the journal as defined in the outbound message queue record and creates and sends an EDI confirmation message file to your customer.